﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThuatToanDAO;
using System.Data.SqlClient;

public partial class Admin_Add : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_Save_Click(object sender, EventArgs e)
    {
        CategoryDAO cate = new CategoryDAO();

        List<SqlParameter> parameters = new List<SqlParameter>();
        parameters.Add(new SqlParameter("CategoryID", 1));
        parameters.Add(new SqlParameter("Name", FreeTextBox1.Text));

        cate.ExecuteInsert(parameters);
    }
}